import request from "@/utils/request";
const UnixTime = () => Math.floor(new Date().getTime());

/**
 * 2021-07-16 推广员后台接口
 */

// 推广员、推广商列表

export function getDtoListByPage(data) {
  return request({
    url: "/v2/Assistant/getDtoListByPage",
    method: "post",
    data
  });

}
// 不分页列表
export function getList(data) {
  return request({
    url: "/v2/Assistant/getList",
    method: "post",
    data
  });
}

// 添加推广员/推广商
export function addAssistant(data) {
  return request({
    url: "/v2/Assistant/add",
    method: "post",
    data
  });
}

// 首次修改推广商 信息
export function firstModifyAgency(data) {
  return request({
    url: "/v2/Assistant/firstModifyAgency",
    method: "post",
    data
  });
}
// 获取推广员/推广商详情
export function getDtoAssistant(data) {
  return request({
    url: "/v2/Assistant/getDto",
    method: "post",
    data
  });
}

// 修改推广员/推广商 信息
export function modifyAssistant(data) {
  return request({
    url: "/v2/Assistant/modify",
    method: "post",
    data
  });
}

// 修改推广员/推广商 分成方案
export function modifyScheme(data) {
  return request({
    url: "/v2/Assistant/modifyScheme",
    method: "post",
    data
  });
}

// 母包 同步推广商
export function addAgencyByPro(data) {
  return request({
    url: "/v2/Assistant/addAgencyByPro",
    method: "post",
    data
  });
}

// end 

